package com.unit2.pojo;

/**
 * @author 李琦 on 2021/8/3.
 * @version java version "16.0.1" 2021-04-20
 */
public enum Color枚举 {

    RED(001,"红色"),GREEN(002,"绿色"),BLUE(003,"蓝色");

    private  int id;
    private  String name;

    private Color枚举(int id, String name) {//构造方法设置为私有
        this.id = id;
        this.name = name;
    }
    //删除了set方法
    public int getId() {
        return id;
    }
    public String getName() {
        return name;
    }




}
